Package com.fsf.news.actor.processor
Class NewsSentimentProcessorActorTest
java.lang.Object
com.fsf.news.actor.processor.NewsSentimentProcessorActorTest
@ExtendWith({org.mockito.junit.jupiter.MockitoExtension.class,org.apache.pekko.actor.testkit.typed.javadsl.TestKitJUnit5Extension.class})
class NewsSentimentProcessorActorTest
extends Object
Unit tests for the NewsSentimentProcessorActor class.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidTests that a Sentiment request message is replied by an appropriate response.(package private) voidTests that a Sentiment request message is replied by an appropriate response in case of failure.
-
Field Details
-
testKit
@JUnit5TestKit org.apache.pekko.actor.testkit.typed.javadsl.ActorTestKit testKit -
processor
@Mock com.fsf.news.processor.NewsSentimentProcessor processor
-
-
Constructor Details
-
NewsSentimentProcessorActorTest
NewsSentimentProcessorActorTest()
-
-
Method Details
-
testProcessRequestMessageSentiment
@Test void testProcessRequestMessageSentiment()Tests that a Sentiment request message is replied by an appropriate response. -
testProcessRequestMessageSentimentException
@Test void testProcessRequestMessageSentimentException()Tests that a Sentiment request message is replied by an appropriate response in case of failure.
-